/*
  ==============================================================================

  This is an automatically generated file created by the Jucer!

  Creation date:  27 May 2008 12:27:53 pm

  Be careful when adding custom code to these files, as only the code within
  the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  and re-saved.

  Jucer version: 1.11

  ------------------------------------------------------------------------------

  The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
  Copyright 2004-6 by Raw Material Software ltd.

  ==============================================================================
*/

#ifndef __JUCER_HEADER_KETONALSETTINGSCOMPONENT_KETONALSETTINGSCOMPONENT_2D339936__
#define __JUCER_HEADER_KETONALSETTINGSCOMPONENT_KETONALSETTINGSCOMPONENT_2D339936__

//[Headers]     -- You can add your own extra header files here --
#include "juce.h"
#include "KetonalSettingsComponentConfigs.h"
#include "KetonalConfigWindow.h"
class Ketonal;
//[/Headers]



//==============================================================================
/**
                                                                    //[Comments]
    An auto-generated component, created by the Jucer.

    Describe your class and how it works here!
                                                                    //[/Comments]
*/
class KetonalSettingsComponent  : public Component,
                                  public FileBrowserListener,
                                  public ButtonListener
{
public:
    //==============================================================================
    KetonalSettingsComponent (Ketonal *_p);
    ~KetonalSettingsComponent();

    //==============================================================================
    //[UserMethods]     -- You can add your own custom methods in this section.
	void mouseDrag (const MouseEvent& e);
	void mouseDown (const MouseEvent& e);
	void fileDoubleClicked (const File &file);
	void fileClicked (const File &file, const MouseEvent &e);
	void selectionChanged ();
	void editConfig (const File file);
	void deleteConfig (const File file);
	void newConfig ();
	void closeConfig();
    //[/UserMethods]

    void paint (Graphics& g);
    void resized();
    void buttonClicked (Button* buttonThatWasClicked);

    // Binary resources:
    static const char* folder_png;
    static const int folder_pngSize;
    static const char* close32_32_png;
    static const int close32_32_pngSize;
    static const char* add_png;
    static const int add_pngSize;
    static const char* delete_png;
    static const int delete_pngSize;
    static const char* edit_png;
    static const int edit_pngSize;

    //==============================================================================
    juce_UseDebuggingNewOperator

private:
    //[UserVariables]   -- You can add your own custom variables in this section.
	ComponentDragger myDragger;
	FileTreeComponent* fileTreeComp;
    DirectoryContentsList* directoryList;
    TimeSliceThread thread;
	Ketonal *parent;
	KetonalConfigWindow *configWindow;
    //[/UserVariables]

    //==============================================================================
    TextEditor* configFolderPath;
    ImageButton* configFolderBrowse;
    Label* label;
    TextButton* okButton;
    KetonalSettingsComponentConfigs* configList;
    ImageButton* configAdd;
    ImageButton* configDelete;
    ImageButton* configEdit;

    //==============================================================================
    // (prevent copy constructor and operator= being generated..)
    KetonalSettingsComponent (const KetonalSettingsComponent&);
    const KetonalSettingsComponent& operator= (const KetonalSettingsComponent&);
};


#endif   // __JUCER_HEADER_KETONALSETTINGSCOMPONENT_KETONALSETTINGSCOMPONENT_2D339936__
